﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AStar.Class
{
    [Serializable]
    class Street : IComparable
    {
        private City destination;
        private float length;

        public float Length
        {
            get { return length; }
            set { length = value; }
        }

        public Street(City city, float length)
        {
            destination = city;
            this.length = length;
        }

        public int CompareTo(object obj)
        {
            return destination.CompareTo(obj + "");
        }
    }
}
